<?php
namespace Home\Controller;

use Think\Controller;
class ClassifyController extends Controller {
    public function index(){
        $this->name = M('types')->select();
        $this->display();
    }
    public function waref(){
        $id = $_REQUEST['id'];
        $where['types_id'] = $id;
        $this->name = M('shop')->where($where)->select();
        $this->display('Classify:waref');
    }
}